﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="PessoaBuscaCadastro.ascx.vb" Inherits="UserControls_PessoaBuscaCadastro" %>


<asp:MultiView runat="server" ActiveViewIndex="0" ID="mlt1">
            <asp:View runat="server" ID="Busca">
                <fieldset>
                <legend>Busca</legend>

                    Nome: <asp:TextBox runat="server" ID="txNome1"></asp:TextBox>

                    <br />
                    <asp:Button runat="server" ID="btBuscar" Text="Buscar" />
                    <asp:Button runat="server" ID="btNovo" Text="Novo" />

                    <br />

                    <asp:GridView runat="server" ID="GrdP1" AutoGenerateColumns="false">
                    <Columns>
                    <asp:TemplateField HeaderText="Nome">
                    <ItemTemplate>
                    <asp:Linkbutton runat="server" ID="lkNome" OnClick="SelecionarPessoa"></asp:Linkbutton>
                    </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Email">
                    <ItemTemplate>
                    <asp:Label runat="server" ID="lbEmail"></asp:Label>
                    </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Cidade">
                    <ItemTemplate>
                    <asp:Label runat="server" ID="lbCidade"></asp:Label>
                    </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="UF">
                    <ItemTemplate>
                    <asp:Label runat="server" ID="lbUF"></asp:Label>
                    </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="LOGIN">
                    <ItemTemplate>
                    <asp:Label runat="server" ID="lbUsu"></asp:Label>
                    </ItemTemplate>
                    </asp:TemplateField>
                    </Columns>
                    </asp:GridView>
            </fieldset>

        </asp:View>
        <asp:View runat="server" id="Cadastro">

            
            Nome: <asp:TextBox runat="server" ID="txNome2"></asp:TextBox><br />
            Cidade: <asp:TextBox runat="server" ID="txCidade2"></asp:TextBox><br />
            UF: <asp:TextBox runat="server" ID="txUF2"></asp:TextBox><br />
            Identidade: <asp:TextBox runat="server" ID="txIdent2"></asp:TextBox><br /><br />
            <asp:Button runat="server" ID="btSalvar" Text="Salvar" Visible="false" />
            <asp:Button runat="server" ID="btAtualizar" Text="Atualizar" Visible="false" />
                <asp:Button runat="server" ID="btVoltar1" Text="Voltar" />


        </asp:View>
        </asp:MultiView>